<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
	function check(){
		var form = document.registerForm;
		if(form.name.value==""){
			alert("<?php echo h(_T('ui_r_name_c')); ?>");
			return false;
		}
		return true;
	}
</script>
</head>
<body>
<h3>
<?php 
if($type=='0'){
	echo h(_T('ui_r_type0_p'));
}
else if($type=='1'){
	echo h(_T('ui_r_type1_p'));
}
?>
</h3>
<form name="registerForm" action="<?php echo url('Register','SavePart'); ?>" method="POST" onsubmit="return check();">
<table>
<tr>
<td><?php echo h(_T('ui_r_name')); ?>:</td>
<td><input type="text" name="name" size="30" maxlength="50"/>*</td>
</tr>
<tr>
<td><?php echo h(_T('ui_r_sex')); ?>:</td>
<td>
<select name="sex">
<option value="0"><?php echo h(_T('ui_r_sex0')); ?></option>
<option value="1"><?php echo h(_T('ui_r_sex1')); ?></option>
</select>
</td>
</tr>
<tr>
<td><?php echo h(_T('ui_r_birthday')); ?>:</td>
<td><input type="text" name="birthday" size="30" value="2008-07-28"/></td>
</tr>
<tr>
<td><?php echo h(_T('ui_r_phone')); ?>:</td>
<td><input type="text" name="phone" size="30" maxlength="15"/></td>
</tr>
<tr>
<td><?php echo h(_T('ui_r_mobilephone')); ?>:</td>
<td><input type="text" name="mobilephone" size="30" maxlength="15"/></td>
</tr>
<tr>
<td><?php echo h(_T('ui_r_otherphone')); ?>:</td>
<td><input type="text" name="otherphone" size="30" maxlength="15"/></td>
</tr>
<tr>
<td><?php echo h(_T('ui_r_msn')); ?>:</td>
<td><input type="text" name="msn" size="30"  maxlength="50"/></td>
</tr>
<tr>
<td><?php echo h(_T('ui_r_zip')); ?>:</td>
<td><input type="text" name="zip" size="30" maxlength="6"/></td>
</tr>
<tr>
<td><?php echo h(_T('ui_r_address')); ?>:</td>
<td><textarea name="address" rows="4" cols="25"></textarea></td>
</tr>
<tr>
<td><input type="submit" value="<?php echo h(_T('ui_r_complete')); ?>"/></td>
<td><input type="reset" value="<?php echo h(_T('ui_r_reset')); ?>"/></td>
</tr>
</table>
</form>
</body>
</html>